package com.huli.feign;

import com.huli.param.OwnerParam;
import com.huli.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("server-owner")
public interface OwnerFeign {

    @GetMapping("/owner/selectOwnerById")
     Result selectOwnerById(@SpringQueryMap OwnerParam ownerParam);

    @PutMapping("/owner/updateOwnerMoney")
    Result updateOwnerMoney(@SpringQueryMap OwnerParam ownerParam);

    @DeleteMapping("/owner/deleteOwnerVip")
    void deleteOwnerVip();
}
